var baseUrl = "https://music.aityp.com/"

function http(url) {
    return new Promise((resolve, reject) => {
        wx.request({
            url: baseUrl + url,
            data: {},
            header: {
                'content-type': 'application/json'
            },
            method: 'GET',
            dataType: 'json',
            responseType: 'text',
            success: (result) => {
                resolve(result)
            },
            fail: (err) => {
                reject(err);
            }
        });
    })

}
module.exports = http;